{% extends 'homepage.html' %}
{% block content %}

<h2>Browse
  <a class="knowl-title" knowl="mf.siegel">
    Siegel modular forms
  </a>
</h2>

<p>
  <h3>Degree 2</h3>
  Integral weight:
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Sp4Z', page = 'forms') }}">
    <script type="math/tex">M_k\big({\rm Sp}(4,\mathbb{Z})\big)</script>
  </a>
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Kp', page = 'forms') }}">
    <script type="math/tex">M_k\big(K(p)\big)</script>
  </a>
  <!---
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Gamma0_2', page = 'forms') }}">
    <script type="math/tex">M_k\big(\Gamma_0(2)\big)</script>
  </a>
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Gamma0_3', page = 'forms') }}">
    <script type="math/tex">M_k\big(\Gamma_0(3\big))</script>
  </a>
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Gamma0_3_psi_3', page = 'forms') }}">
    <script type="math/tex">M_k\big(\Gamma_0(3),\psi_3\big)</script>
  </a>
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Gamma0_4', page = 'forms') }}">
    <script type="math/tex">M_k\big(\Gamma_0(4)\big)</script>
  </a>
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Gamma0_4_psi_4', page = 'forms') }}">
    <script type="math/tex">M_k\big(\Gamma_0(4),\psi_4\big)</script>
  </a>
</p>

<p>
  Half integral weight:
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Gamma0_4_half', page = 'forms') }}">
    <script type="math/tex">M_{k-1/2}\big(\Gamma_0(4)\big)</script>
  </a>
</p>
--->
<p>
  Integral weight and <script type="math/tex">\mathbb{C}[X,Y]-valued</script>:
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Sp4Z_2', page = 'forms') }}">
    <script type="math/tex">M_{k,2}\big({\rm Sp}(4,\mathbb{Z})\big)</script>
  </a>
</p>

<p>
  <h3>Degree 3</h3>
  Integral weight:
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Sp6Z', page = 'forms') }}">
    <script type="math/tex">M_k\big({\rm Sp}(6,\mathbb{Z})\big)</script>
  </a>
</p>

<p>
  <h3>Degree 4</h3>
  Integral weight:
  &nbsp;&nbsp;
  <a href="{{ url_for( 'ModularForm_GSp4_Q_top_level', group = 'Sp8Z', page = 'forms') }}">
    <script type="math/tex">M_k\big({\rm Sp}(8,\mathbb{Z})\big)</script>
  </a>
</p>

<br/></br>

<h2>Table of dimensions</h2>

<script> 
  function validate_weight()
  {
  var input = document.getElementById("weight_range").value;
  if(input == '')
  {  return false;  }
  if(input.match(/^\d+$/))  // Only digits.
  {
  if(input > 1000000)
  {
  alert("Please enter a smaller number.");
  return false;
  }
  else
  {  return true;  }
  }
  else if(input.match(/^\d+\-\d+$/))  // Range, like 2-50
  {
  min_wt = parseInt(input.split("-")[0]);
  max_wt = parseInt(input.split("-")[1]);
  if(min_wt > max_wt)
  {
  alert("Your first weight cannot be larger than the second weight.")
  return false;
  }
  else
  {
  if ((max_wt-min_wt + 1)*max_wt > 1000000)
  {
  alert("Please enter a smaller range (output would take too long to compute).");
  return false;
  }
  else
  {  return true;  }
  }
  }
  else
  {
  alert("Please enter either a weight or a range of weights (in the form '2-50', with no spaces).");
  return false;
  }
  }
</script> 
 
<form action="/ModularForm/GSp/Q" method="get" onSubmit="return validate_weight()"> 
  <input type="hidden" name="page" value="dimensions" /> 
  <input type="hidden" name="level" value="17" />
  <table> 
    <tr>
      <td>
	<label>Group</label>
	<select name="group">
	  <option value="Sp4Z">Sp(4,Z)</option>
	  <option value="Sp4Z_2">Sp(4,Z), vector-valued</option>
	  <option value="Sp6Z">Sp(6,Z)</option>
	  <option value="Sp8Z">Sp(8,Z)</option>
	  <option value="Kp">K(p)</option>
	  <option value="Gamma0_2">Gamma_0(2)</option>
	  <option value="Gamma0_3">Gamma_0(3)</option>
	  <option value="Gamma0_3_psi_3">Gamma_0(3), psi_3</option>
	  <option value="Gamma0_4">Gamma_0(4)</option>
	  <option value="Gamma0_4_psi_4">Gamma_0(4), psi_4</option>
	  <option value="Gamma0_4_half">Gamma_0(4), half integral</option>
	</select>
      </td>
      <td> 
	<label>weight(s)</label>
	<input type="text" name="weight_range" placeholder="20-30" />
	<span class="formexample">e.g. 2 or 20-40</span>
      </td>
      <td> 
	<button type="submit" value="submit">Submit</button>
      </td>
    </tr>
  </table> 
</form> 

<br/>
<!---
<h2>Search</h2>

<p>
  Stay tuned. Soon available.
</p>
--->
{% endblock %}
